﻿/*
 * Created by SharpDevelop.
 * User: Wolfgang
 * Date: 09.02.2013
 * Time: 13:59
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.ComponentModel;

namespace WPF_MVC.MVC
{
	/// <summary>
	/// Description of User.
	/// </summary>
	public class User : INotifyPropertyChanged
	{
		private int userId;
		private string firstName;
		private string lastName;
		private string city;
		private string state;
		private string country;

		public int UserId
		{
			get
			{
				return userId;
			}
			set
			{
				userId = value;
				OnPropertyChanged("UserId");
			}
		}
		public string FirstName
		{
			get
			{
				return firstName;
			}
			set
			{
				firstName = value;
				OnPropertyChanged("FirstName");
			}
		}
		public string LastName
		{
			get
			{
				return lastName;
			}
			set
			{
				lastName = value;
				OnPropertyChanged("LastName");
			}
		}
		public string City
		{
			get
			{
				return city;
			}
			set
			{
				city = value;
				OnPropertyChanged("City");
			}
		}
		public string State
		{
			get
			{
				return state;
			}
			set
			{
				state = value;
				OnPropertyChanged("State");
			}
		}
		public string Country
		{
			get
			{
				return country;
			}
			set
			{
				country = value;
				OnPropertyChanged("Country");
			}
		}

		#region INotifyPropertyChanged Members

		public event PropertyChangedEventHandler PropertyChanged;
		private void OnPropertyChanged(string propertyName)
		{
			if (PropertyChanged != null)
			{
				PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
		#endregion

	}

}
